import request from '@/utils/request'

// 查询健身日志列表
export function listFitnesslogs(query) {
  return request({
    url: '/system/fitnesslogs/list',
    method: 'get',
    params: query
  })
}

// 查询健身日志详细
export function getFitnesslogs(logId) {
  return request({
    url: '/system/fitnesslogs/' + logId,
    method: 'get'
  })
}

// 新增健身日志
export function addFitnesslogs(data) {
  return request({
    url: '/system/fitnesslogs',
    method: 'post',
    data: data
  })
}

// 修改健身日志
export function updateFitnesslogs(data) {
  return request({
    url: '/system/fitnesslogs',
    method: 'put',
    data: data
  })
}

// 删除健身日志
export function delFitnesslogs(logId) {
  return request({
    url: '/system/fitnesslogs/' + logId,
    method: 'delete'
  })
}
